<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="搜索,中国新闻网" />
    <meta name="author" content="redhacker(beanor#gmail.com)" />
    <title>中新搜索</title>
    <script src="../js/jquery-2.1.4.min.js"></script>
    <link href="../startbootstrap/vendor/bootstrap/css/bootstrap.min.css"
          rel="stylesheet">
    <script src="../My97DatePicker/WdatePicker.js"></script>
    <link href="../css/list.css" rel="stylesheet">
    <script src="../js/moment/moment.js"></script>
    <!-- 预加载图片 -->
    <link rel="preload" as="image" href="../img/s_bg2.jpg">
    <link rel="preload" as="image" href="../img/s_logo2.png">
    <link rel="preload" as="image" href="../img/d2.png">
    <link rel="preload" as="image" href="../img/load.gif">
	<script type="text/javascript" src="../js/page.js"></script>
    <style>

    </style>
    <script type="text/javascript">
        var q = "\u79D1\u6280";
        var sortType = "time";
        var searchField = "all";
        var channel = "all";
        var dateType = "all";
        var startDate = null == null ? '' : null;
        var endDate = null== null ? '' : null;
        var editor = null;
        var shouQiFlag = null;
        var pageNum = 1;
        var totalNum = 10000;
        var docArr = [{"createtime":"2025-04-02 22:04:04","unique_id":"4-8-10393758","content_without_tag":"\u6B64\u5916\uFF0C\u653F\u5E9C\u8FD8\u80A9\u8D1F\u63A8\u52A8<em>\u79D1<\/em><em>\u6280<\/em>\u521B\u65B0\u548C\u4EA7\u4E1A\u5347\u7EA7\u7B49\u91CD\u4EFB\uFF0C\u4E5F\u9700\u8981\u7528\u597D\u4EF7\u683C\u653F\u7B56\u5DE5\u5177\uFF0C\u53D1\u6325\u4EF7\u683C\u6760\u6746\u5728\u5E02\u573A\u5F15\u5BFC\u3001\u4EA7\u4E1A\u5E03\u5C40\u3001\u521B\u65B0\u5F15\u9886\u7B49\u65B9\u9762\u7684\u79EF\u6781\u4F5C\u7528\u3002\u90ED\u4E3D\u5CA9\u8BF4\uFF0C\u6301\u7EED\u6FC0\u53D1\u521B\u65B0\u52A8\u529B\u4E0E\u793E\u4F1A\u6D3B\u529B\uFF0C\u52A0\u5FEB\u5F62\u6210\u65B0\u8D28\u751F\u4EA7\u529B\uFF0C\u5173\u952E\u662F\u4F18\u5316\u751F\u4EA7\u8981\u7D20\u7684\u521B\u65B0\u6027\u914D\u7F6E\u3002","primary_channel":"cj","pubtime":"2025-04-02 22:04:10","title":"\uFF08\u7ECF\u6D4E\u89C2\u5BDF\uFF09\u4E2D\u56FD\u660E\u786E\u4EF7\u683C\u6539\u9769\u65B9\u5411 \u91CA\u653E\u5E02\u573A\u673A\u5236\u6D3B\u529B","url":"http:\/\/www.chinanews.com.cn\/cj\/2025\/04-02\/10393758.shtml","thumbnail_file":""},{"createtime":"2025-04-02 22:02:38","unique_id":"4-8-10393754","content_without_tag":"\u5357\u5B81\u56FD\u9645<em>\u79D1<\/em><em>\u6280<\/em>\u4EA7\u4E1A\u57CE\u9879\u76EE\u4EE5\u65B0\u52A0\u5761\u7EAC\u58F9<em>\u79D1<\/em><em>\u6280<\/em>\u57CE\u548C\u82CF\u5DDE\u5DE5\u4E1A\u56ED\u533A\u4E3A\u84DD\u672C\uFF0C\u7531\u65B0\u52A0\u5761\u88D5\u65B0\u56FD\u9645\u96C6\u56E2\u4E0E\u5357\u5B81\u5E02\u653F\u5E9C\u643A\u624B\u6253\u9020\u3002\u524D\u8FF0\u9879\u76EE\u62DF\u9009\u5740\u4E8E\u5357\u5B81\u5E02\u9752\u79C0\u533A\u84C9\u8309\u6E56\u7247\u533A\u3001\u4E94\u5408\u7247\u533A\uFF0C\u89C4\u5212\u5360\u573071.46\u5E73\u65B9\u516C\u91CC\u3002\u9879\u76EE\u4E3B\u8981\u805A\u7126\u201C\u4EBA\u5DE5\u667A\u80FD\u3001\u65B0\u80FD\u6E90\u5E94\u7528\u3001\u65B0\u5065\u5EB7\u201D\u4E09\u5927\u6838\u5FC3\u4EA7\u4E1A\uFF0C\u914D\u5957<em>\u79D1<\/em><em>\u6280<\/em>\u91D1\u878D\u3001\u6587\u65C5\u3001\u65B0\u6750\u6599\u7B49\u591A\u5143\u5316\u9886\u57DF\u3002","primary_channel":"cj","pubtime":"2025-04-02 22:02:44","title":["\u5357\u5B81\u643A\u624B\u65B0\u52A0\u5761\u6253\u9020\u56FD\u9645<em>\u79D1<\/em><em>\u6280<\/em>\u4EA7\u4E1A\u57CE"],"url":"http:\/\/www.chinanews.com.cn\/cj\/2025\/04-02\/10393754.shtml","thumbnail_file":""},{"createtime":"2025-04-02 21:56:35","unique_id":"4-8-10393751","content_without_tag":"\u4E2D\u65B0\u7F51\u5409\u67974\u67082\u65E5\u7535(\u8BB0\u8005 \u77F3\u6D2A\u5B87)\u6625\u610F\u6B63\u6D53\uFF0C\u5728\u51CC\u8FDC<em>\u79D1<\/em><em>\u6280<\/em>\u98CE\u529B\u53D1\u7535\u673A\u4E3B\u8F74\u627F\u56FD\u4EA7\u66FF\u4EE3\u9879\u76EE\u73B0\u573A\uFF0C\u5DE5\u4EBA\u4EEC\u5FD9\u7740\u8C03\u8BD5\u751F\u4EA7\u7EBF\u548C\u8BBE\u5907\uFF0C\u4E3A5\u6708\u4EFD\u7684\u6295\u4EA7\u505A\u6700\u540E\u51B2\u523A\u3002\u8BE5\u9879\u76EE\u4F4D\u4E8E\u5409\u6797\u5E02\u6C38\u5409\u7ECF\u6D4E\u5F00\u53D1\u533A\uFF0C\u5176\u662F\u5F53\u5730\u6625\u5B63\u96C6\u4E2D\u5F00\u5DE5\u7684\u9879\u76EE\u4E4B\u4E00\u3002\u5409\u6797\u5E02\u662F\u4E2D\u56FD\u8457\u540D\u7684\u201C\u5316\u5DE5\u57CE\u201D\uFF0C\u5DE5\u5382\u6797\u7ACB\u3001\u5DE5\u4E1A\u88C5\u7F6E\u5BC6\u96C6\u3002","primary_channel":"cj","pubtime":"2025-04-02 21:56:53","title":"\u201C\u5316\u5DE5\u57CE\u201D\u5409\u6797\u6380\u8D77\u5DE5\u4E1A\u56FD\u4EA7\u5316\u6D6A\u6F6E","url":"http:\/\/www.chinanews.com.cn\/cj\/2025\/04-02\/10393751.shtml","thumbnail_file":""},{"createtime":"2025-04-02 21:49:20","unique_id":"4-8-10393731","content_without_tag":"\u4E0B\u4E00\u6B65\uFF0C\u4F73\u6728\u65AF\u5C06\u7EE7\u7EED\u575A\u6301\u81EA\u4E3B\u521B\u65B0\uFF0C\u9A71\u52A8<em>\u79D1<\/em><em>\u6280<\/em>\u6210\u679C\u4ECE\u201C\u5B9E\u9A8C\u5BA4\u201D\u8FC8\u5411\u201C\u751F\u4EA7\u7EBF\u201D\u3002(\u5B8C)","primary_channel":"cj","pubtime":"2025-04-02 21:49:28","title":["<em>\u79D1<\/em><em>\u6280<\/em>\u8D4B\u80FD\u9ED1\u571F\u5730 \u9ED1\u9F99\u6C5F\u4F73\u6728\u65AF\u8FDB\u5165\u519C\u673A\u4EA7\u4E1A\u201C\u667A\u9020\u65F6\u4EE3\u201D"],"url":"http:\/\/www.chinanews.com.cn\/cj\/2025\/04-02\/10393731.shtml","thumbnail_file":""},{"createtime":"2025-04-02 21:49:06","unique_id":"4-8-10393736","content_without_tag":"\u57282\u65E5\u7684\u8DB3\u7403\u516C\u76CA\u9879\u76EE\u7B7E\u7EA6\u4EEA\u5F0F\u4E2D\uFF0C\u7C73\u5362\u4E5F\u8868\u793A\uFF0C\u201C\u4E2D\u56FD\u8DB3\u7403\u53D1\u5C55\u57FA\u91D1\u4F1A\u8FD9\u6B21\u8054\u5408\u534E\u5F6C\u57FA\u91D1\u4F1A\u548C\u8FFD\u89C5<em>\u79D1<\/em><em>\u6280<\/em>\uFF0C\u628A\u8D44\u6E90\u76F4\u63A5\u6295\u5411\u9752\u5C11\u5E74\u8D5B\u4E8B\u3001\u6559\u7EC3\u57F9\u8BAD\u548C\u6587\u5316\u5EFA\u8BBE\uFF0C\u8FD9\u662F\u2018\u6253\u5730\u57FA\u2019\u7684\u5DE5\u4F5C\u3002\u201D\u201C\u8BA9\u5B69\u5B50\u5728\u65E0\u538B\u529B\u7684\u73AF\u5883\u4E0B\u63A5\u89E6\u8DB3\u7403\uFF0C\u8FD9\u79CD\u2018\u4ECE\u5174\u8DA3\u51FA\u53D1\u2019\u7684\u516C\u76CA\u6A21\u5F0F\uFF0C\u80FD\u8BA9\u66F4\u591A\u5B69\u5B50\u611F\u53D7\u5230\u8DB3\u7403\u7684\u5FEB\u4E50\uFF0C\u4E3A\u672A\u6765\u7684\u8DB3\u7403\u4EBA\u53E3\u50A8\u5907\u5960\u5B9A\u57FA\u7840\u3002\u201D","primary_channel":"ty","pubtime":"2025-04-02 21:49:14","title":"\u7C73\u5362\uFF1A\u76F8\u4FE1\u4E2D\u56FD\u7537\u8DB3\u6709\u80FD\u529B\u51B2\u51FB\u4E16\u754C\u676F","url":"http:\/\/www.chinanews.com.cn\/ty\/2025\/04-02\/10393736.shtml","thumbnail_file":""},{"createtime":"2025-04-02 21:48:40","unique_id":"4-8-10393732","content_without_tag":"\u5E7F\u4E1C\u7701\u6C34\u5229\u5385\u4ECB\u7ECD\uFF0C\u5F53\u4E0B\uFF0C\u5357\u7CA4\u5E7F\u88A4\u4E61\u6751\u8FDB\u5165\u6625\u8015\u6625\u704C\u7684\u9AD8\u5CF0\u671F\uFF0C\u4E3A\u4FDD\u969C\u519C\u7530\u201C\u559D\u597D\u6C34\u3001\u559D\u9971\u6C34\u201D\uFF0C\u5168\u7701\u5404\u5730\u6C34\u5229\u90E8\u95E8\u901A\u8FC7\u704C\u6E20\u6E05\u6DE4\u758F\u6D5A\u3001<em>\u79D1<\/em><em>\u6280<\/em>\u8D4B\u80FD\u3001\u7CBE\u7EC6\u8C03\u5EA6\u7B49\u4E3E\u63AA\uFF0C\u6700\u5927\u7A0B\u5EA6\u4FDD\u969C\u6625\u704C\u7528\u6C34\u9700\u6C42\u3002","primary_channel":"cj","pubtime":"2025-04-02 21:48:47","title":"\u5E7F\u4E1C\u6625\u8015\u6625\u704C\u8986\u76D6\u519C\u7530\u9762\u79EF1272\u4E07\u4EA9","url":"http:\/\/www.chinanews.com.cn\/cj\/2025\/04-02\/10393732.shtml","thumbnail_file":""},{"createtime":"2025-04-02 21:43:04","unique_id":"4-8-10393743","content_without_tag":"\u5357\u65B9<em>\u79D1<\/em><em>\u6280<\/em>\u5927\u5B66\u5B66\u751F\u97E9\u666E\u5B87\u4E0E\u56FD\u9632\u79D1\u5927\u8BA1\u7B97\u673A\u79D1\u5B66\u4E0E\u6280\u672F\u535A\u58EB\u987E\u5584\u690D\u5206\u522B\u5C55\u793A\u4E86\u9752\u5E74\u4E00\u4EE3\u5728<em>\u79D1<\/em><em>\u6280<\/em>\u521B\u65B0\u9886\u57DF\u7684\u63A2\u7D22\u3002\u968F\u540E\u6E56\u5357\u7701\u793E\u4F1A\u79D1\u5B66\u9662(\u7701\u4EBA\u6C11\u653F\u5E9C\u53D1\u5C55\u7814\u7A76\u4E2D\u5FC3)\u515A\u7EC4\u6210\u5458\u3001\u526F\u9662\u957F(\u526F\u4E3B\u4EFB)\u6C64\u5EFA\u519B\u4ECE2025\u5E74\u5168\u56FD\u4E24\u4F1A\u70ED\u8BCD\u51FA\u53D1\uFF0C\u5F15\u9886\u5E7F\u5927\u9752\u5E74\u5728\u594B\u529B\u5EFA\u8BBE\u793E\u4F1A\u4E3B\u4E49\u73B0\u4EE3\u5316\u4E2D\u56FD\u7684\u706B\u70ED\u5B9E\u8DF5\u4E2D\u8D21\u732E\u9752\u6625\u529B\u91CF\u3002","primary_channel":"sh","pubtime":"2025-04-02 21:51:51","title":"\u201C\u9752\u6625\u534E\u7AE0\u00B7\u6070\u540C\u5B66\u5C11\u5E74\u201D\u7F51\u7EDC\u4E3B\u9898\u5BA3\u4F20\u6D3B\u52A8\u5728\u957F\u6C99\u542F\u52A8","url":"http:\/\/www.chinanews.com.cn\/sh\/2025\/04-02\/10393743.shtml","thumbnail_file":""},{"createtime":"2025-04-02 21:40:12","unique_id":"4-8-10393718","content_without_tag":"\u4E2D\u65B0\u793E\u5317\u4EAC4\u67082\u65E5\u7535 (\u8BB0\u8005 \u590F\u5BBE)\u4E2D\u56FD\u8DE8\u5883\u7535\u5546\u7684\u751F\u610F\u51FA\u73B0\u53D8\u5316\uFF1A\u9AD8<em>\u79D1<\/em><em>\u6280<\/em>\u3001\u9AD8\u5355\u4EF7\u5546\u54C1\u7684\u9700\u6C42\u6301\u7EED\u9AD8\u6DA8\u3002","primary_channel":"cj","pubtime":"2025-04-02 21:40:18","title":["\u4E2D\u56FDAR\u773C\u955C\u70ED\u9500\u6D77\u5916 \u8DE8\u5883\u7535\u5546\u52A9\u9AD8<em>\u79D1<\/em><em>\u6280<\/em>\u4EA7\u54C1\u201C\u8D70\u51FA\u53BB\u201D"],"url":"http:\/\/www.chinanews.com.cn\/cj\/2025\/04-02\/10393718.shtml","thumbnail_file":""},{"createtime":"2025-04-02 21:39:46","unique_id":"4-8-10393733","content_without_tag":"\u4E0E\u6B64\u540C\u65F6\uFF0C\u6211\u56FD\u9AD8\u5EA6\u91CD\u89C6\u6559\u80B2\u3001<em>\u79D1<\/em><em>\u6280<\/em>\u3001\u4EBA\u624D\u4E00\u4F53\u5316\u53D1\u5C55\uFF0C\u5C06\u5176\u63D0\u5347\u5230\u524D\u6240\u672A\u6709\u7684\u6218\u7565\u9AD8\u5EA6\u3002\u901A\u8FC7\u5B9E\u65BD\u6559\u80B2\u5F3A\u56FD\u6218\u7565\uFF0C\u52A0\u5927\u5BF9\u4F18\u79C0\u4EBA\u624D\u7684\u6276\u6301\u4E0E\u57F9\u80B2\u529B\u5EA6\u3002\u6211\u56FD\u6B63\u4EE5\u5F00\u653E\u5305\u5BB9\u7684\u59FF\u6001\u5438\u5F15\u5168\u7403\u4F18\u79C0\u4EBA\u624D\u96C6\u805A\uFF0C\u4E3A\u4EA7\u4E1A\u53D1\u5C55\u6CE8\u5165\u65B0\u7684\u6D3B\u529B\u4E0E\u521B\u9020\u529B\u3002","primary_channel":"ll","pubtime":"2025-04-02 21:41:57","title":"\u3010\u5149\u660E\u8BBA\u575B\u3011\u4E3A\u6295\u8D44\u4E2D\u56FD\u63D0\u4F9B\u6709\u529B\u4FDD\u969C","url":"http:\/\/www.chinanews.com.cn\/ll\/2025\/04-02\/10393733.shtml","thumbnail_file":""},{"createtime":"2025-04-02 21:37:06","unique_id":"4-8-10393717","content_without_tag":"\u5728\u5B81\u590F\u56DE\u65CF\u81EA\u6CBB\u533A\u7684\u7530\u95F4\u5730\u5934\u3001\u6D89\u519C\u4F01\u4E1A\uFF0C\u6D3B\u8DC3\u7740\u4E00\u7FA4\u5FD9\u788C\u7684\u8EAB\u5F71\uFF0C\u4ED6\u4EEC\u5C31\u662F\u897F\u5317\u519C\u6797<em>\u79D1<\/em><em>\u6280<\/em>\u5927\u5B66\u8D74\u5B81\u590F\u56DE\u8BBF\u201C\u5934\u96C1\u201D\u56E2\u961F\u30025\u5929\u65F6\u95F4\u91CC\uFF0C\u56E2\u961F\u6210\u5458\u523020\u4F59\u5BB6\u201C\u5934\u96C1\u201D\u4F01\u4E1A\u56DE\u8BBF\u4EA4\u6D41\uFF0C\u6388\u4E8813\u5BB6\u201C\u5934\u96C1\u201D\u4F01\u4E1A\u201C\u897F\u5317\u519C\u6797<em>\u79D1<\/em><em>\u6280<\/em>\u5927\u5B66\u4E61\u6751\u4EA7\u4E1A\u632F\u5174\u5E26\u5934\u4EBA\u2018\u5934\u96C1\u2019\u53D1\u5C55\u4E13\u5BB6\u5DE5\u4F5C\u7AD9\u201D\u3002","primary_channel":"cj","pubtime":"2025-04-02 21:37:13","title":["\u897F\u5317\u519C\u6797<em>\u79D1<\/em><em>\u6280<\/em>\u5927\u5B66\uFF1A\u585E\u4E0A\u6625\u5F52\u8BBF\u201C\u96C1\u201D\u5FD9"],"url":"http:\/\/www.chinanews.com.cn\/cj\/2025\/04-02\/10393717.shtml","thumbnail_file":""}];
        var fieldParam = [{"code":"all","name":"\u6807\u9898\u6216\u6B63\u6587"},{"code":"title","name":"\u4EC5\u6807\u9898"},{"code":"content","name":"\u4EC5\u6B63\u6587"}];
        var sortParam = [{"code":"time","name":"\u6309\u65F6\u95F4\u5012\u5E8F"},{"code":"timeasc","name":"\u6309\u65F6\u95F4\u6B63\u5E8F"},{"code":"_score","name":"\u6309\u76F8\u5173\u5EA6"}];
        var timeParam = [{"code":"all","name":"\u5168\u90E8"},{"code":"today","name":"\u4ECA\u65E5"},{"code":"3day","name":"\u8FD1\u4E09\u65E5"},{"code":"1week","name":"\u8FD11\u5468"},{"code":"1month","name":"\u8FD1\u4E00\u6708"},{"code":"3month","name":"\u8FD1\u4E09\u6708"},{"code":"6month","name":"\u8FD1\u534A\u5E74"},{"code":"1year","name":"\u8FD1\u4E00\u5E74"}];
        var channelParam = [{"code":"all","name":"\u5168\u90E8"},{"code":"gj","name":"\u56FD\u9645"},{"code":"gn","name":"\u65F6\u653F"},{"code":"dxw","name":"\u4E1C\u897F\u95EE"},{"code":"comment","name":"\u8BC4\u8BBA"},{"code":"ty","name":"\u4F53\u80B2"},{"code":"hr","name":"\u534E\u4EBA"},{"code":"sh","name":"\u793E\u4F1A"},{"code":"tp","name":"\u56FE\u7247"},{"code":"cul","name":"\u6587\u5A31"},{"code":"cj","name":"\u8D22\u7ECF"},{"code":"life","name":"\u5065\u5EB7\u00B7\u751F\u6D3B"},{"code":"auto","name":"\u6C7D\u8F66"},{"code":"sp","name":"\u89C6\u9891"},{"code":"zhibo","name":"\u76F4\u64AD"},{"code":"mil","name":"\u519B\u4E8B"},{"code":"chuangyi","name":"\u521B\u610F"},{"code":"gsztc","name":"\u56FD\u662F\u76F4\u901A\u8F66"},{"code":"dwq","name":"\u5927\u6E7E\u533A"}];
        var pageSize = 10;
    </script>
    <script>
        $(document).ready(function() {
        	
        	console.log(docArr);
        	
            $("#q").val(q);
            $("#formQ").val(q);
            $("#formField").val(searchField);
            $("#formSort").val(sortType);
            $("#formDateType").val(dateType);
            $("#formStartDate").val(startDate);
            $("#formEndDate").val(endDate);
            $("#formEditor").val(editor);
            $("#editor").val(editor);
            $("#formPageNum").val(pageNum);
            $("#formShouQiFlag").val(shouQiFlag);
            $("#formChannel").val(channel);

            if(dateType || dateType!=''){
            	 formatDate(dateType);
            }
           
            //左侧查询条件
            var fieldParamHtml = '<table class="paramTable">';
            var sortParamHtml = '<table class="paramTable">';
            var timeParamHtml = '<table class="paramTable">';
            var channelParamHtml = '<table class="paramTable">';
            $.each(fieldParam,function (key,val) {
                if(key%3 == 0){
                    fieldParamHtml +="<tr>"
                }
                if(searchField == val.code){
                    fieldParamHtml+='<td><span class="normalParam activeParam" onclick="changeField(\''+ key + '\',\'' + val.code+'\')">'+val.name+'</span></td>'
                }else{
                    fieldParamHtml+='<td><span class="normalParam" onclick="changeField(\''+ key + '\',\'' + val.code+'\')">'+val.name+'</span></td>'
                }
                if(key%3 == 2 || key == (fieldParam.length-1)){
                    fieldParamHtml +="</tr>"
                }
            })
            fieldParamHtml += '</table>'
            $("#fieldParam").html(fieldParamHtml);

            $.each(sortParam,function (key,val) {
                if(key%3 == 0){
                    sortParamHtml +="<tr>"
                }
                if(sortType == val.code){
                    sortParamHtml+='<td><span class="normalParam activeParam" onclick="changeSort(\''+ key + '\',\'' + val.code+'\')">'+val.name+'</span></td>'
                }else{
                    sortParamHtml+='<td><span class="normalParam" onclick="changeSort(\''+ key + '\',\'' + val.code+'\')">'+val.name+'</span></td>'
                }
                if(key%3 == 2 || key == (sortParam.length-1)){
                    sortParamHtml +="</tr>"
                }
            })
            sortParamHtml += '</table>'
            $("#sortParam").html(sortParamHtml);

            $.each(timeParam,function (key,val) {
                if(key%3 == 0){
                    timeParamHtml +="<tr>"
                }
                if(dateType == val.code){
                    timeParamHtml+='<td><span class="normalParam activeParam" onclick="changeDateType(\''+ key + '\',\'' + val.code+'\')">'+val.name+'</span></td>'
                }else{
                    timeParamHtml+='<td><span class="normalParam" onclick="changeDateType(\''+ key + '\',\'' + val.code+'\')">'+val.name+'</span></td>'
                }
                if(key%3 == 2 || key == (timeParam.length-1)){
                    timeParamHtml +="</tr>"
                }
            })
            timeParamHtml += '</table>'
            //增加自定义范围
            timeParamHtml += '<div style="color:#747474;" id="timeRangeDiv"><div class="myDateText">自定义：</div><input type="text" name="start_time" id="countTimestart" onfocus="selectDate(1)" onchange="changeDate(1)" value="'+startDate+'" size="8" class="date myDateInput" readonly> - <input type="text" name="end_time" id="countTimeend" onfocus="selectDate(2)" onchange="changeDate(2)" value="'+endDate+'" size="8"  class="date myDateInput" readonly> </div>';
            $("#timeParam").html(timeParamHtml);

            $.each(channelParam,function (key,val) {
                if(key%3 == 0){
                    channelParamHtml +="<tr>"
                }
                if(channel == val.code){
                    channelParamHtml+='<td><span class="normalParam activeParam" onclick="changeChannel(\''+ key + '\',\'' + val.code+'\')">'+val.name+'</span></td>'
                }else{
                    channelParamHtml+='<td><span class="normalParam" onclick="changeChannel(\''+ key + '\',\'' + val.code+'\')">'+val.name+'</span></td>'
                }
                if(key%3 == 2 || key == (channelParam.length-1)){
                    channelParamHtml +="</tr>"
                }
            })
            channelParamHtml += '</table>'
            $("#channelParam").html(channelParamHtml);
            //新闻列表
            var docListHtml = '';
            var re1 = /<em>/gi;
            var re2 = /<\/em>/gi;
            
            //console.log(docArr);
            if (docArr.length > 0) {
                $.each(docArr, function (key, val) {
                    var content = val.content_without_tag;
                    var news_id = val.unique_id;
                    var title = val.title;
                    var url = val.url;
                    if(content && content.length>200){
	                    var chinese = content.replace(re1,"").replace(re2,"");
	                    if (chinese.length > 200) {
	                        content = content.toString().substring(0, 200) + "......";
	                    }
                    }
                    docListHtml += '<table cellpadding="0" cellspacing="0">';
                    docListHtml += '<tr>';
                    docListHtml += '<div class="news_title"><a href="' + url + '" target="_blank">' + title + '</a></div>';
                    docListHtml += '</tr>';
                    docListHtml += '<tr>';
                    docListHtml += '<td  valign="top">';
                    if (val.thumbnail_file) {
//                        docListHtml += '<img src="../img/load.gif" data-src="' + val.thumbnail_file + '"  loading="lazy" alt="缩略图">';
//                        docListHtml += '<img src="' + val.thumbnail_file + '">';
//                    docListHtml+='<img src="../img/temp.jpeg">';
                        docListHtml += '</td>';
                        docListHtml += '<td valign="top" style="padding-left: 15px;">';
                    } else {
                        docListHtml += '</td>';
                        docListHtml += '<td valign="top">';
                    }
                    docListHtml += '<ul class="news_item">';
                    docListHtml += '<li class="news_id">' + news_id + '</li>';
                    docListHtml += '<li class="news_content">' + content + '</li><li class="news_space"></li>';
                    docListHtml += '<li><a href="' + url + '" target="_blank"><span class="news_other">' + url + '</span></a><span class="news_other" style="margin-left: 10px;font-size: 11px;">' + val.createtime + '</span></li>';
                    docListHtml += '</ul>';
                    docListHtml += '</td>';
                    docListHtml += '</tr>';
                    docListHtml += '</table>';
                    docListHtml += '<hr />';
                })
                $("#rightList").html(docListHtml);
            }else{
                docListHtml += '<div class="noResImg"><img src="../img/s_n2.png"></div>';
                docListHtml += '<div class="noRes"><span>没有找到相关内容，请更换关键字后重试！</span></div>';
                $("#rightList").html(docListHtml);
            }
            //页码
            if (docArr.length > 0) {
               
            	var pagestr=getPages(totalNum,pageSize,pageNum);
            	var pageDIV = $("#pageDiv");
                pageDIV.append(pagestr);
            }

            if(shouQiFlag == 'hide'){
                hideMoreParam();
            }else {
                showMoreParam();
            }

            //输入框清空按钮
            $('#input-wrapper').hover(function() { // 鼠标悬浮时触发
                if($.trim($('#q').val()) != ''){ // input框中有值
                    $('#clear-input-value').css('display', 'block')
                }else {
                    $('#clear-input-value').css('display', 'none') // input框中没有值
                }
            }, function() { // 鼠标离开时触发
                $('#clear-input-value').css('display', 'none')
            })

            // input change
            $("#input-wrapper input").bind("input propertychange",function () {
                if($.trim($('#q').val()) != ''){ // input框中有值
                    $('#clear-input-value').css('display', 'block')
                }else {
                    $('#clear-input-value').css('display', 'none') // input框中没有值
                }
            })

            // 初始化的时候执行一下加载图片的函数
            lazyLoad();
        });

    </script>
    <script type="text/javascript">
        function throttle(fn, delay = 200) {
            let timer = null;
            return function () {
                if (timer) return;
                timer = setTimeout(() => {
                    fn.apply(this, arguments);
                timer = null;
            }, delay);
            };
        }
        // 懒加载-回调函数
        function lazyLoad() {
            const imgs = document.querySelectorAll('img[data-src]');
            if (!imgs.length) return;
            imgs.forEach(img => {
                const rect = img.getBoundingClientRect();
                if (rect.top < window.innerHeight) {
                    img.src = img.dataset.src;
                    img.removeAttribute('data-src'); // 我们是通过img[data-src]查找所有img标签的，渲染后就删除data-src可减少forEach循环的计算成本
                }
            })
        }
        // 全局监听scroll滚动事件
        window.addEventListener('scroll', throttle(() => {
            lazyLoad();
        }, 100));

        function ongetkey(page){
            document.submitForm.pageNum.value=page;
            document.submitForm.submit();
        }
        function handleKeyPress(event) {
            // 检查按下的键是否是回车键 (key code 13)
            if (event.keyCode === 13) {
                submitFun();
            }
        }
        function submitFun(){
            if ($("#q").val() == "") {
                alert("请输入搜索关键字");
                return false;
            }
            var key = $("#q").val();
            //if(key.length>30){
                //alert("输入的关键字长度不能超过30");
                //return false;
            //}
            $("#formQ").val($("#q").val());
            $("#formPageNum").val(1);
            document.submitForm.submit();
        }
        function searchEditor() {
            $("#formEditor").val($("#editor").val());
            console.log($("#formEditor").val());
            $("#formPageNum").val(1);
            document.submitForm.submit();
        }
        function clearEditor() {
            $("#editor").val('');
            $("#formEditor").val('');
            $("#formPageNum").val(1);
            document.submitForm.submit();
        }
        function changeField(index,val) {
            $("#formField").val(val);
            var allSpan = $("#fieldParam").children('span');
            allSpan.removeClass("activeParam");
            allSpan.eq(index).addClass("activeParam");
            $("#formPageNum").val(1);
            document.submitForm.submit();
        }
        function changeSort(index,val) {
            $("#formSort").val(val);
            var allSpan = $("#sortParam").children('span');
            allSpan.removeClass("activeParam");
            allSpan.eq(index).addClass("activeParam");
            $("#formPageNum").val(1);
            document.submitForm.submit();
        }
        function changeDateType(index,val) {
            $("#formDateType").val(val);
            var allSpan = $("#timeParam").children('span');
            allSpan.removeClass("activeParam");
            allSpan.eq(index).addClass("activeParam");
            formatDate(val);
            $("#formPageNum").val(1);
            
            document.submitForm.submit();
        }
        function changeChannel(index,val) {
            $("#formChannel").val(val);
            var allSpan = $("#channelParam").children('span');
            allSpan.removeClass("activeParam");
            allSpan.eq(index).addClass("activeParam");
            $("#formPageNum").val(1);
            document.submitForm.submit();
        }
        function selectDate(flag){
            if(flag==1){
                var startTime = $("#countTimestart").val();
                if(startTime != ""){
                    WdatePicker({dateFmt:'yyyy-MM-dd',minDate:startTime});
                }else{
                    WdatePicker({dateFmt:'yyyy-MM-dd'});
                }
            }else{
                var endTime = $("#countTimeend").val();
                if(endTime != ""){
                    WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:endTime});
                }else{
                    WdatePicker({dateFmt:'yyyy-MM-dd'});
                }
            }
        }
        function changeDate(flag){
            var allSpan = $("#timeParam").children('span');
            allSpan.removeClass("activeParam").addClass("normalParam");
            $("#formDateType").val('');
            var startDate = "";
            var endDate = "";
            if(flag==1){
                startDate = $("#countTimestart").val();
                console.log("start",startDate)
                $("#formStartDate").val(startDate);
            }else{
                endDate = $("#countTimeend").val();
                console.log("end",endDate)
                $("#formEndDate").val(endDate);
            }
            if(startDate != '' && endDate != ''){
                $("#formPageNum").val(1);
                document.submitForm.submit();
            }
        }
        function formatDate(dateType) {
            const date = new Date()
            const year = date.getFullYear()
            const month = ("0" + (date.getMonth() + 1)).slice(-2)
            const day = ("0" + date.getDate()).slice(-2)
            var today = year+'-'+month+'-'+day;
            var startStr = "";
            var endStr = "";
            if(dateType != 'all'){
                var offset = parseInt(dateType.replace("year", "").replace("month", "").replace("week", "").replace("day", ""));
                if(dateType == 'today'){
                    startStr = today;
                }else if(dateType.indexOf('day') != -1){
                    startStr = moment(new Date()).subtract(offset, "days").format("YYYY-MM-DD");
                }else if(dateType.indexOf('week') != -1){
                    startStr = moment(new Date()).subtract(offset*7, "days").format("YYYY-MM-DD");
                }else if(dateType.indexOf('month') != -1){
                    startStr = moment(new Date()).subtract(offset, "months").format("YYYY-MM-DD");
                }else if(dateType.indexOf('year') != -1){
                    startStr = moment(new Date()).subtract(offset, "years").format("YYYY-MM-DD");
                }
                endStr = today;
            }else{
                startStr = '';
                endStr = '';
            }
            $("#countTimestart").val(startStr);
            $("#countTimeend").val(endStr);
            $("#formStartDate").val(startStr);
            $("#formEndDate").val(endStr);

        }
        function hideMoreParam() {
            $("#shouqi").hide();
            $("#timeRangeDiv").hide();
            $("#editorDiv").hide();
            $("#editor").val('');
            $("#formEditor").val('');
            $("#formShouQiFlag").val('hide');
            $("#more").show();

        }
        function showMoreParam() {
            $("#more").hide();
            $("#shouqi").show();
            $("#timeRangeDiv").show();
            $("#editorDiv").show();
            $("#formShouQiFlag").val('show');
        }

        function openEnSearch() {
            window.location.href="/search/en?q=" + $("#q").val();
        }
        function openPicSearch() {
            window.location.href="/search/pic?q=" + $("#q").val();
        }
        function openVideoSearch() {
            window.location.href="/search/video?q=" + $("#q").val();
        }
        function openLiveSearch() {
            window.location.href="/search/live?q=" + $("#q").val();
        }
        function openTopicSearch() {
            window.location.href="/search/topic?q=" + $("#q").val();
        }

        /**
         * 清空input框中的值
         * @returns
         */
        function clearInputValue() {
            $('#q').val('')
            $('#clear-input-value').css('display', 'none')
        }
    </script>
</head>
<body class="bg">
<div style="margin:60px auto 30px auto;">
    <div id="input-wrapper" style="text-align: center;">
    <a href="/index"><img src="../img/s_logo2.png" alt="中新搜索" border="0" style="margin-right: 5px;width: 8%;" /></a>
    <span class="form-group" style="position: relative">
        <input type="text" class="q" name="q" id="q" autocomplete="on" onkeydown="handleKeyPress(event)">
         <span class="glyphicon glyphicon-remove-circle" id="clear-input-value" onclick="clearInputValue()"></span>
        <button class="searchBtn" type="button" onclick="submitFun()">
            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16" style="position: absolute;left: 4px;top: 11px;">
                    <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"></path>
                </svg>
                <span class="souSuo">搜索</span>
        </button>
    </span>
    </div>
</div>
<div class="tabDiv">
    <ul class="tabUl" id="tabUl">
        <li class="normalTab" onclick="openNewsSearch()"><span class="activeTab">新闻<img class="tip" src="../img/d2.png"></span></li>
        <li class="normalTab" onclick="openPicSearch()"><span>图片</span></li>
        <li class="normalTab" onclick="openVideoSearch()"><span>视频</span></li>
        <li class="normalTab" onclick="openLiveSearch()"><span>直播</span></li>
        <li class="normalTab" onclick="openTopicSearch()"><span>专题</span></li>
        <li class="normalTab" onclick="openEnSearch()"><span>English</span></li>
    </ul>
</div>
<div class="content">
    <table>
        <tr>
            <td class="left">
                <div class="leftParam">
                    <div class="paramText" id="fieldParamText">搜索位置</div>
                    <div id="fieldParam" class="paramDetail"></div>
                    <div class="paramText" id="sortParamText">排序方式</div>
                    <div id="sortParam" class="paramDetail"></div>
                    <div class="paramText" id="timeParamText">时间</div>
                    <div id="timeParam" class="paramDetail"></div>
                    <div class="paramText" id="channelParamText">频道</div>
                    <div id="channelParam" class="paramDetail"></div>
                    <div id="editorDiv">
                        <div class="paramText" id="editorParamText">编辑</div>
                        <div id="editorParam" class="paramDetail">
                            <input id="editor" placeholder="请输入编辑姓名" class="paramInput"/>
                        </div>
                        <div style="text-align: center;">
                            <button class="submitBtn" type="button" onclick="searchEditor()"><img src="../img/submit.png" style="width: 60px;"></button>
                            <button class="resetBtn" type="button" onclick="clearEditor()"><img src="../img/reset.png" style="width: 60px;"></button>
                        </div>
                    </div>
                    <div id="shouqi" style="text-align: center;margin-top: 30px;color:#81a1e5;">
                        <div onclick="hideMoreParam()">收起<img src="../img/up.png" style="width: 10px;  margin-top: -5px;  margin-left: 5px;"/></div>
                    </div>
                    <div id="more" style="text-align: center;margin-top: 20px;color:#81a1e5;display: none;">
                        <div onclick="showMoreParam()">展开<img src="../img/down.png" style="width: 10px;  margin-top: -5px;  margin-left: 5px;"/></div>
                    </div>
                </div>
            </td>
            <td class="mid">

            </td>
            <td class="right">
                <div class="rightList">
                    <div id="rightList">

                    </div>
                    <div id="pageDiv">

                    </div>
                </div>
            </td>
        </tr>
    </table>
    <div class="copyRight">
        [网上传播视听节目许可证(0106168)][京ICP证040655号]
        [京公网安备 11010202009201号][京ICP备05004340号-1]
        [互联网宗教信息服务许可证：京(2022)0000118；京(2022)0000119]<br/>
        Copyright ©1999-2023 chinanews.com. All Rights Reserved
    </div>
    <form name="submitForm" method="post" action="/search/news">
        <div class="form-group">
            <input type="hidden" id="formQ" name="q">
            <input type="hidden" id="formField" name="searchField">
            <input type="hidden" id="formSort" name="sortType">
            <input type="hidden" id="formDateType" name="dateType">
            <input type="hidden" id="formStartDate" name="startDate">
            <input type="hidden" id="formEndDate" name="endDate">
            <input type="hidden" id="formChannel" name="channel">
            <input type="hidden" id="formEditor" name="editor">
            <input type="hidden" id="formShouQiFlag" name="shouQiFlag">
            <input type="hidden" id="formPageNum" name="pageNum">
        </div>
    </form>

</div>


</body>
</html>
